import request from '@/utils/axios'
import {
  URL_API
} from '@/utils/mUtils'
const base = URL_API()

// 地址的模糊搜索
export function regionbox(params) {
  return request({
    url: `${base}/api/company/region/box`,
    method: "post",
    data: params,

  });
}

//运力工具页面列表接口
export function CarrierUtilList(params) {
    return request({
      url: `${base}/api/carrier_util/list`,
      method: 'post',
      data: params,
    })
  }

//运力工具页面创建线路API 
export function CarrierUtilCreate(params) {
    return request({
      url: `${base}/api/carrier_util/create`,
      method: 'post',
      data: params,
    })
  }

//运力工具页面详情API   
export function CarrierUtilDetail(params) {
  return request({
    url: `${base}/api/carrier_util/detail`,
    method: 'post',
    data: params,
  })
}

//运力工具页面删除 
export function CarrierUtilDelete(params) {
  return request({
    url: `${base}/api/carrier_util/delete`,
    method: 'post',
    data: params,
  })
}

//运力工具页面编辑 
export function CarrierUtilUpdate(params) {
  return request({
    url: `${base}/api/carrier_util/update`,
    method: 'post',
    data: params,
  })
}

//运力工具页面禁用
export function CarrierUtilDisable(params) {
  return request({
    url: `${base}/api/carrier_util/disable`,
    method: 'post',
    data: params,
  })
}

//运力工具页面启用  
export function CarrierUtilEnable(params) {
  return request({
    url: `${base}/api/carrier_util/enable`,
    method: 'post',
    data: params,
  })
}

//运力工具页面导出
export function CarrierUtilExport(params) {
  return request({
    url: `${base}/api/carrier_util/export`,
    method: 'post',
    data: params,
  })
}

//运力工具页面待开通线路列表 
export function ToOpenedList(params) {
  return request({
    url: `${base}/api/carrier_util/to_opened/list`,
    method: 'post',
    data: params,
  })
}

//运力工具页面待开通线路创建   
export function ToOpenedCreate(params) {
  return request({
    url: `${base}/api/carrier_util/to_opened/create`,
    method: 'post',
    data: params,
  })
}

//运力工具页面拒绝开通线路   
export function ToOpenedRefuse(params) {
  return request({
    url: `${base}/api/carrier_util/to_opened/refuse`,
    method: 'post',
    data: params,
  })
}

//计费IDAPI   
export function BillingCalculateCost(params) {
  return request({
    url: `${base}/api/company/billing_engine/calculate_cost`,
    method: 'post',
    data: params,
  })
}

//导入API 
export function CarrierUtilImport(params) {
  return request({
    url: `${base}/api/carrier_util/import`,
    method: 'post',
    data: params,
  })
}

// 运力工具

export function Transport_capacity(params) {

  return request({
    url: `${base}/api/transport_capacity/create`,
    method: 'post',
    data: params,
  })
}
// 标签搜索
export function Label_list(params) {

  return request({
    url: `${base}/api/transport_capacity/label/list`,
    method: 'post',
    data: params,
  })
}
// 标签创建功能
export function Label_create(params) {
  
  return request({
    url: `${base}/api/transport_capacity/label/create`,
    method: 'post',
    data: params,
  })
}
// 运力列表接口
export function transport_capacity_list(params) {
  return request({
    url: `${base}/api/transport_capacity/list`,
    method: 'post',
    data: params,
  })
}
// 运力详情接口
export function transport_capacity_Detail(params) {
  return request({
    url: `${base}/api/transport_capacity/detail`,
    method: 'post',
    data: params,
  })
}

// 运力编辑接口
export function transport_capacity_update(params) {
  return request({
    url: `${base}/api/transport_capacity/update`,
    method: 'post',
    data: params,
  })
}
// 删除接口
export function transport_capacity_delete(params) {
  return request({
    url: `${base}/api/transport_capacity/delete`,
    method: 'post',
    data: params,
  })
}
// 导出接口
export function transport_capacity_export(params) {
  return request({
    url: `${base}/api/transport_capacity/export`,
    method: 'post',
    data: params,
  })
}
// 导入上传
export function transport_capacity_import(params) {
  return request({
    url: `${base}/api/transport_capacity/import`,
    method: 'post',
    data: params,
  })
}
// 导入上传
export function TransportSignageInfo(params) {
  return request({
    url: `${base}/api/transport_capacity/signage_info/get`,
    method: 'post',
    data: params,
  })
}
